package com.oa.core.exception;

import com.oa.core.enumm.CodeEnum;

/**
 * 业务异常
 * 
 * @author wangfan
 * @date 2017-6-29 上午9:53:38
 */
public class BusinessException extends IException {
	private static final long serialVersionUID = 5450935008012318697L;

	public BusinessException(String message) {
		super(CodeEnum.SYSTEM_UNKNOWN_ERROR.getCode (), message);
	}

	public BusinessException(int code,String message){
		super(code,message);
	}

	public BusinessException() {
		super(CodeEnum.SYSTEM_UNKNOWN_ERROR.getCode (), CodeEnum.SYSTEM_UNKNOWN_ERROR.getMessage ());
	}
}
